package cn.charmaine.basic.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    //当前页
    private Long currentPage = 1L;
    //每页条数
    private Long pageSize = 10L;

    private String keyword;

    public Long getPage(){
        return (currentPage-1)*pageSize;
    }

}
